<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.orderSn" @on-enter="query" placeholder="订单号"/>
                </i-col>
                <i-button @click="query">查询</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("return:audit"))
                <i-button type="info" @click="audit"><i class="fa fa-pencil-square-o"></i>审核退货</i-button>
                #end
                #if($shiro.hasPermission("return:close"))
                <i-button type="warning" @click="close"><i class="fa fa-pencil-square-o"></i>关闭退货</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title" style="height: auto">
            {{title}}
        </p>
        <Tabs value="name1">
            <Tab-Pane label="订单信息" name="name1">
                <i-form ref="formValidate" :model="returnGoods" :label-width="80">
                    <Form-item label="订单号" prop="orderSn">
                        <i-input v-model="returnGoods.orderSn" readonly/>
                    </Form-item>
                    <Form-item label="会员" prop="userName">
                        <i-input v-model="returnGoods.userName" readonly/>
                    </Form-item>
                    <Form-item label="订单类型" prop="orderType">
                        <i-select v-model="returnGoods.orderType" disabled>
                            <i-option value="1">普通订单</i-option>
                            <i-option value="2">团购订单</i-option>
                            <i-option value="3">砍价订单</i-option>
                            <i-option value="4">立即购买</i-option>
                        </i-select>
                    </Form-item>
                    <Form-item label="订单状态" prop="returnStatus" readonly>
                        <Radio-group v-model="returnGoods.orderStatus">
                            <Radio label="0" disabled>
                                <span>待付款</span>
                            </Radio>
                            <Radio label="101" disabled>
                                <span>订单已取消</span>
                            </Radio>
                            <Radio label="102" disabled>
                                <span>订单已删除</span>
                            </Radio>
                            <Radio label="201" disabled>
                                <span>订单已付款</span>
                            </Radio>
                            <Radio label="300" disabled>
                                <span>订单已发货</span>
                            </Radio>
                            <Radio label="301" disabled>
                                <span>用户确认收货</span>
                            </Radio>
                            <Radio label="401" disabled>
                                <span>退款</span>
                            </Radio>
                            <Radio label="402" disabled>
                                <span>完成</span>
                            </Radio>
                        </Radio-group>
                    </Form-item>
                    <Form-item label="发货状态" prop="shippingStatus">
                        <Radio-group v-model="returnGoods.shippingStatus">
                            <Radio label="0" disabled>
                                <span>待发货</span>
                            </Radio>
                            <Radio label="1" disabled>
                                <span>已发货</span>
                            </Radio>
                            <Radio label="2" disabled>
                                <span>已收货</span>
                            </Radio>
                            <Radio label="4" disabled>
                                <span>退货</span>
                            </Radio>
                        </Radio-group>
                    </Form-item>
                    <Form-item label="付款状态" prop="payStatus">
                        <Radio-group v-model="returnGoods.payStatus">
                            <Radio label="0" disabled>
                                <span>待付款</span>
                            </Radio>
                            <Radio label="1" disabled>
                                <span>付款中</span>
                            </Radio>
                            <Radio label="2" disabled>
                                <span>已付款</span>
                            </Radio>
                        </Radio-group>
                    </Form-item>
                    <Form-item label="收货人" prop="consignee">
                        <i-input v-model="returnGoods.consignee" readonly/>
                    </Form-item>
                    <Form-item label="收货地址" prop="address">
                        <i-input v-model="returnGoods.address" readonly/>
                    </Form-item>
                    <Form-item label="联系电话" prop="mobile">
                        <i-input v-model="returnGoods.mobile" readonly/>
                    </Form-item>
                    <Form-item label="快递公司" prop="shippingName">
                        <i-input v-model="returnGoods.shippingName" readonly/>
                    </Form-item>
                    <Form-item label="快递单号" prop="shippingNo">
                        <i-input v-model="returnGoods.shippingNo" readonly/>
                    </Form-item>
                    <Form-item label="付款方" prop="payName">
                        <i-input v-model="returnGoods.payName" readonly/>
                    </Form-item>
                    <Form-item label="快递费用" prop="shippingFee">
                        <i-input v-model="returnGoods.shippingFee" readonly/>
                    </Form-item>
                    <Form-item label="实际支付" prop="actualPrice">
                        <i-input v-model="returnGoods.actualPrice" readonly/>
                    </Form-item>
                    <Form-item label="订单总价" prop="returnPrice">
                        <i-input v-model="returnGoods.returnPrice" readonly/>
                    </Form-item>
                    <Form-item label="商品总价" prop="goodsPrice">
                        <i-input v-model="returnGoods.goodsPrice" readonly/>
                    </Form-item>
                    <Form-item label="下单时间" prop="addTime">
                        <Date-picker v-model="returnGoods.addTime" placeholder="使用时间" readonly/>
                    </Form-item>
                    <Form-item label="付款时间" prop="payTime">
                        <Date-picker v-model="returnGoods.payTime" placeholder="使用时间" readonly/>
                    </Form-item>
                    <Form-item label="配送费用" prop="freightPrice">
                        <i-input v-model="returnGoods.freightPrice" readonly/>
                    </Form-item>
                </i-form>
            </Tab-Pane>
            <Tab-Pane label="商品信息" name="name2">
                <i-form ref="formValidate" :model="returnGoods" :label-width="80">
                    <Form-item label="商品名称" prop="goodsName">
                        <i-input v-model="returnGoods.goodsName" readonly/>
                    </Form-item>
                    <Form-item label="数量" prop="number">
                        <i-input v-model="returnGoods.number" readonly/>
                    </Form-item>
                    <Form-item label="产品价格" prop="retailPrice">
                        <i-input v-model="returnGoods.retailPrice" readonly/>
                    </Form-item>
                    <Form-item label="产品成本" prop="costPrice">
                        <i-input v-model="returnGoods.costPrice" readonly/>
                    </Form-item>
                    <Form-item label="产品折扣" prop="discountPrice">
                        <i-input v-model="returnGoods.discountPrice" readonly/>
                    </Form-item>
                    <Form-item label="实际折扣" prop="actualDiscountPrice">
                        <i-input v-model="returnGoods.actualDiscountPrice" readonly/>
                    </Form-item>
                    <Form-item label="规格" prop="goodsSpecifitionNameValue">
                        <i-input v-model="returnGoods.goodsSpecifitionNameValue" readonly/>
                    </Form-item>
                    <Row>
                        <i-col span="16">
                            <Form-item label="商品图片" prop="listPicUrl">
                                <i-input v-model="returnGoods.listPicUrl" placeholder="商品图片" readonly/>
                            </Form-item>
                        </i-col>
                        <i-col span="3">
                            <Form-item :label-width="1">
                                <i-button icon="eye" @click="eyeImageGoodsPicUrl">预览图片</i-button>
                            </Form-item>
                        </i-col>
                    </Row>
                </i-form>
            </Tab-Pane>
            <Tab-Pane label="退货信息" name="name3">
                <i-form ref="formValidate" :model="returnGoods" :rules="ruleValidate" :label-width="90">
                    <Form-item label="申请时间" prop="returnApplyTime">
                        <i-input v-model="returnGoods.returnApplyTime" readonly/>
                    </Form-item>
                    <Form-item label="退货类型" prop="returnTypeDesc">
                        <i-input v-model="returnGoods.returnTypeDesc" readonly/>
                    </Form-item>
                    <Form-item label="退货数量" prop="returnNumber">
                        <i-input v-model="returnGoods.returnNumber" readonly/>
                    </Form-item>
                    <Form-item label="退货原因" prop="returnReasonDesc">
                        <i-input v-model="returnGoods.returnReasonDesc" readonly/>
                    </Form-item>
                    <Form-item label="退货备注" prop="returnRemark">
                        <i-input v-model="returnGoods.returnRemark" readonly/>
                    </Form-item>
                    <Row>
                        <i-col span="16">
                            <Form-item label="退货图片" prop="returnPic1Url">
                                <i-input v-model="returnGoods.returnPic1Url" readonly/>
                            </Form-item>
                        </i-col>
                        <i-col span="3">
                            <Form-item :label-width="1">
                                <i-button icon="eye" @click="eyeImageGoodsReturnPic1Url">预览图片</i-button>
                            </Form-item>
                        </i-col>
                    </Row>


                    <Row>
                        <i-col span="16">
                            <Form-item label="退货图片" prop="returnPic2Url">
                                <i-input v-model="returnGoods.returnPic2Url" readonly/>
                            </Form-item>
                        </i-col>
                        <i-col span="3">
                            <Form-item :label-width="1">
                                <i-button icon="eye" @click="eyeImageGoodsReturnPic2Url">预览图片</i-button>
                            </Form-item>
                        </i-col>
                    </Row>

                    <Row>
                        <i-col span="16">
                            <Form-item label="退货图片" prop="returnPic3Url">
                                <i-input v-model="returnGoods.returnPic3Url" readonly/>
                            </Form-item>
                        </i-col>
                        <i-col span="3">
                            <Form-item :label-width="1">
                                <i-button icon="eye" @click="eyeImageGoodsReturnPic3Url">预览图片</i-button>
                            </Form-item>
                        </i-col>
                    </Row>

                    <Row>
                        <i-col span="16">
                            <Form-item label="退货图片" prop="returnPic4Url">
                                <i-input v-model="returnGoods.returnPic4Url" readonly/>
                            </Form-item>
                        </i-col>
                        <i-col span="3">
                            <Form-item :label-width="1">
                                <i-button icon="eye" @click="eyeImageGoodsReturnPic4Url">预览图片</i-button>
                            </Form-item>
                        </i-col>
                    </Row>


                    <Row>
                        <i-col span="16">
                            <Form-item label="退货图片" prop="returnPic5Url">
                                <i-input v-model="returnGoods.returnPic5Url" readonly/>
                            </Form-item>
                        </i-col>
                        <i-col span="3">
                            <Form-item :label-width="1">
                                <i-button icon="eye" @click="eyeImageGoodsReturnPic5Url">预览图片</i-button>
                            </Form-item>
                        </i-col>
                    </Row>

                    <Row>
                        <i-col span="16">
                            <Form-item label="退货图片" prop="returnPic6Url">
                                <i-input v-model="returnGoods.returnPic6Url" readonly/>
                            </Form-item>
                        </i-col>
                        <i-col span="3">
                            <Form-item :label-width="1">
                                <i-button icon="eye" @click="eyeImageGoodsReturnPic6Url">预览图片</i-button>
                            </Form-item>
                        </i-col>
                    </Row>





                    <Form-item label="快递公司" prop="returnShippingName">
                        <i-input v-model="returnGoods.returnShippingName" readonly/>
                    </Form-item>
                    <Form-item label="快递单号" prop="returnShippingNo">
                        <i-input v-model="returnGoods.returnShippingNo" readonly/>
                    </Form-item>
                    <Form-item label="状态" prop="returnStatusDesc">
                        <i-input v-model="returnGoods.returnStatusDesc" readonly/>
                    </Form-item>
                    <Form-item label="审核状态" prop="returnAuditStatus">
                        <i-select v-model="returnGoods.returnAuditStatus" placeholder="请选择审核状态">
                            <i-option value="2">审核通过</i-option>
                            <i-option value="3">审核不通过</i-option>
                        </i-select>
                    </Form-item>
                    <Form-item label="审核结论" prop="returnAuditRemark">
                        <i-input v-model="returnGoods.returnAuditRemark"/>
                    </Form-item>
                    <Form-item label="审核时间" prop="returnAuditTime">
                        <Date-picker type="datetime" v-model="returnGoods.returnAuditTime" placeholder="审核时间" readonly/>
                    </Form-item>
                </i-form>
            </Tab-Pane>
        </Tabs>

        <div style="padding-left: 20px; margin-bottom: 30px">
            <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
            <i-button type="warning" @click="reload" style="margin-left: 8px"/>
            返回</i-button>
        </div>
    </Card>

</div>
<script src="${rc.contextPath}/js/shop/ordergoodsreturn.js?_${date.systemTime}"></script>
</body>
</html>